using DuplexTransformers;
using DuplexTransformersTests.Subjects.WorldA;
using DuplexTransformersTests.Subjects.WorldB;

namespace DuplexTransformersTests
{
    public class ClientTransformer : Transformer<Client, ClientDto>
    {
        public ClientTransformer()
        {
            Property(x=>x.Name).MapsTo(x=>x.Name);
            Property(x=>x.LogoLarge.Name).MapsTo(x=>x.LogoLargeName);
            Property(x=>x.LogoLarge.Name).MapsTo(x=>x.LogoLargeName);
            Property(x => x.Projects).TransformedBy(new ProjectTransformer()).MapsTo(x => x.Projects);
        }
    }
}